﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DataAccessLayer.RoomType>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="room-type-list">
    <% foreach (var item in Model) { %>
    <div class="room-info">
    <div class="room-img">
        <img src="<%: item.ImageFolderPath %>" class="room-type-img" />
    </div>
    <div class="room-detail">
        <h3><%: item.RoomTypeName %></h3>
        <span class="icon-user"></span><%: item.NumberOfBed %> persons (maximum)
        <%: item.Description %>
        <div>Rate:  $<%: item.Price %></div>
    </div>
    <div class="room-action">
         <button class="btn btn-inverse btn-primary"><%: Html.ActionLink("Details", "Details", new { id=item.ID })%></button>
         <button class="btn btn-primary"><%= String.Format("<a href=\"{0}\">{1}</a>", "http://localhost:9999/SelectDate.aspx", "Reservation")%></button>
    </div>
    </div>
    <% } %>
    </div>

</asp:Content>

